home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / gcc263-src.lha / gcc-2.6.3 / config / m88k / dolph.h < prev    next >
C/C++ Source or Header  |  1993-11-21  |  2KB  |  54 lines

  1. /* Definitions of target machine for GNU compiler.
  2.    Motorola m88100 running the Dolphin UNIX System V/88 Release 3.2,
  3.    Version 3.8/7.83 and 3.6/5.86
  4.    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  5.  
  6. This file is part of GNU CC.
  7.  
  8. GNU CC is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2, or (at your option)
  11. any later version.
  12.  
  13. GNU CC is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU CC; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22. #include "m88k/sysv3.h"
  23.  
  24. #define SDB_ALLOW_FORWARD_REFERENCES
  25. #define SDB_ALLOW_UNKNOWN_REFERENCES
  26.  
  27. /* Override m88k/sysv3.h */
  28.  
  29. #undef    CPP_PREDEFINES
  30. #define CPP_PREDEFINES "-Dm88000 -Dm88k -DOCS88 -DDOLPHIN -Dunix -DsysV88 -D__CLASSIFY_TYPE__=2 -Asystem(unix) -Asystem(svr3) -Acpu(m88k) -Amachine(m88k)" 
  31.  
  32. /* 
  33.   If you want to detect dereferencing of NULL pointers, uncomment the
  34.   following two lines. Alternatively, edit the appropriate specs file.
  35.   
  36.   #undef LINK_SPEC
  37.   #define LINK_SPEC "gcc.ld%s"
  38.   
  39.   */
  40.  
  41. #undef CPU_DEFAULT
  42. #define CPU_DEFAULT MASK_88000
  43.  
  44. #undef INITIALIZE_TRAMPOLINE 
  45. #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)            \
  46. {                                    \
  47.   emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 40)), FNADDR); \
  48.   emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 36)), CXT); \
  49.   emit_call_insn (gen_call( gen_rtx (MEM, SImode,            \
  50.                      gen_rtx(SYMBOL_REF,Pmode,        \
  51.                          "__enable_execute_stack")), \
  52.                const0_rtx));                \
  53. }
  54.